﻿<%@ WebHandler Language="C#" Class="PostCommentHandler" %>

using System;
using System.Web;
using System.IO;
using CheatService;

public class PostCommentHandler : IHttpHandler {
    
    
    public void ProcessRequest (HttpContext context) {
        StreamReader reader = new StreamReader(context.Request.InputStream);
        string postData=reader.ReadToEnd();
        MessageControl.OnMessageIn(postData);
        context.Response.ContentType = "text/plain";
        context.Response.Write("0");
        context.Response.End();
    }
 
    public bool IsReusable {
        get {
            return true;
        }
    }

}